var rule = {
	title:'酷吧[磁]',
	host:'https://www.kubady2.com/',
        homeUrl: '/',
	url: '/index.php?m=vod-list-id-fyclass-pg-fypage-order-desc-by-time-class-0-year-0-letter--area--lang-.html',
	filter_url:'',
	filter:{
	},
	searchUrl: '/index.php?m=vod-search-pg-fypage-wd-**.html',
	searchable:2,
	quickSearch:0,
	filterable:0,
	headers:{
		'User-Agent': 'PC_UA',
		'Referer': 'https://www.kuba222.com/'
	},
	timeout:5000,
	class_name: '4K&电影&纪录片&电视剧&动漫',
	class_url: '11&1&16&31&32',
	play_parse:true,
	play_json:[{
		re:'*',
		json:{
			parse:0,
			jx:0
		}
	}],
	lazy:'',
	limit:6,
	推荐:`js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
let d = [];
let html = request(input);
let list = pdfa(html, '.vlist.clearfix li');
list.forEach(function (it){
	d.push({
		title: pdfh(it, 'a&&title'),
		desc: pdfh(it, 'li&&div&&p&&Text'),
		pic_url: pd(it, 'img&&data-original', HOST),
		url: pdfh(it, 'a&&href')
	});
});
setResult(d);
`,
	一级:`js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
let d = [];
if (MY_CATE === '4K'){
	let turl = (MY_PAGE === 1)? '' : '-' + MY_PAGE;
	input = rule.homeUrl + 'vodtopichtml/' + '11' + turl + '.html';
}else if (MY_CATE === 'new'){
	input = rule.homeUrl + MY_CATE  + '.html';
}else{
	let turl = (MY_PAGE === 1)? '' : '-' + MY_PAGE;
	input = rule.homeUrl + 'vodtypehtml/' + MY_CATE + turl + '.html';
}
let html = request(input);
let list = pdfa(html, '.vlist.clearfix li');
list.forEach(function (it){
	d.push({
		title: pdfh(it, 'a&&title'),
		desc: pdfh(it, 'li&&div&&p&&Text'),
		pic_url: pd(it, 'img&&data-original', HOST),
		url: pdfh(it, 'a&&href')
	});
});
setResult(d);
`,
	二级:{
		title:"div.stui-content h3&&Text;.data:eq(0)&&a&&Text",
		img:"div.stui-content img&&data-original",
		desc:'.data:eq(3)&&Text;.data:eq(0)&&a:eq(2)&&Text;.data:eq(0)&&a:eq(1)&&Text;.data:eq(1)&&Text;.data:eq(2)&&Text',
		content:'.stui-vodlist__bd:eq(1)&&Text',
		tabs:`js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
TABS=[];
// 检测迅雷下载链接
if(pdfa(html, 'ul.downlist').length > 0){
    TABS.push("迅雷下载");
}
// 可选：保留原有磁力检测逻辑（如需）
// try{...}catch(e){}
`,
    lists:`js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
LISTS = [];
TABS.forEach(tab => {
    let list = [];
    const lis = pdfa(html, 'ul.downlist li'); // 获取所有li元素
    if(tab === "迅雷下载"){
        lis.forEach(it => {
            const title = pdfh(it, 'strong.down-part-name&&Text').replace(/^第|集$/g, ''); // 标题
            const url = pd(it, 'input.down-url&&value', HOST); // 迅雷下载链接
            list.push(title + '$' + url);
        });
    }
    LISTS.push(list.reverse()); // 反转顺序使最新集数在前
});
`

	},
	搜索: `js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
let d = [];
let html = request(input);
let list = pdfa(html, '.vlist.clearfix li');
list.forEach(function (it){
	d.push({
		title: pdfh(it, 'a&&title'),
		desc: pdfh(it, 'li&&div&&p&&Text'),
		pic_url: pd(it, 'img&&data-original', HOST),
		url: pdfh(it, 'a&&href')
	});
});
setResult(d);
`,
}